package com.walkud.rxjava.utils;

public class SleepUtil {

    /**
     * 延迟2秒，防止进程退出，导致看不到效果
     */
    public static void sleep() {
        sleep(2);
    }

    /**
     * 延迟X秒
     *
     * @param second
     */
    public static void sleep(int second) {
        try {
            Thread.sleep(second * 1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
